﻿{% extends "admin/base_site.html" %}

{% block title%}
Profil
{% endblock%}

{% block branding %}
<h1 id="site-name">Profil użytkownika</h1>
{% endblock %}


{% block breadcrumbs%}
		<div class="breadcrumbs">
			<a class="link_main" href="/"><span>Strona glowna</span></a>
		    {%if user.is_authenticated%}
		    <a class="link_spr"href="/sprawozdania/"><span>Sprawozdania</span></a>
		    <a class="link_prz"href="/przedmioty/"><span>Przedmioty</span></a>
		    <a class="link_wyt"href="/wytyczne/"><span>Wytyczne</span></a>
		    <a class="link_prf" href="/accounts/profile/"><span>Profil</span></a>
		    	{%if user.is_superuser %}
		    	 <a class="link_ladm"href="/admin/"><span>Admin</span></a>
		    	{% endif %}
		    <a class="link_lout"href="/accounts/logout/"><span>Wyloguj</span></a>
		   	{%else%}
		    <a class="link_lin"href="/accounts/login/"><span>Zaloguj</span></a>
		    <a class="link_lreg"href="/accounts/register/"><span>Rejestracja</span></a>
		    {%endif%}
		</div>	
{% endblock%}
{% block content %}

{% if user.is_authenticated %}
Dane profilu użytkownika "{{ user.username }}": <br class="clean"><br class="clean">
	{% if retData %}

		{% for key, data in retData.items %}
			{% if key == "Sprawozdania" or key == "Wytyczne" %}
				{% autoescape off%}
					<p>{{key}}: <br/>{{data}}</p>
				{% endautoescape %}
			{% else %}
				<p>{{key}}: {{data}}</p>
			{% endif %}
		{% endfor %}
			
	{% endif%} 
{% endif %}

{% endblock %}
